<template>
  <div class="header">
    <span style="margin-left:40px">LOGOL</span>
    <el-button style="margin-right:40px" type="success" size="small" plain @click="loginOut"
      >退出</el-button
    >
  </div>
</template>

<script>
export default {
  methods: {
    loginOut() {
      this.$store.commit("LONGIN_OUT");
      location.reload();
    },
  },
};
</script>

<style scoped>
.header {
  position: fixed;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 49px;
  left: 0;
  top: 0;
  z-index: 2;
  background: orange;
}
</style>